package com.bigdata.movieticketapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 小程序用户表
 * </p>
 *
 * @author movie
 * @since 2023-11-12
 */
@Data
@ApiModel(value = "User对象", description = "小程序用户表")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("openid")
    private String openid;

    @ApiModelProperty("session_key")
    private String sessionKey;

    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("手机号")
    private String phoneNumber;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("账号状态")
    private Integer status;

    @ApiModelProperty("钱包")
    private BigDecimal wallet;
}
